using System;
using UnityEngine;

namespace DanielSig.UnityExtensions
{
	public static class XTreeInstance
	{
		public static Vector3 From(this TreeInstance tree, Terrain terrain)
		{
			return tree.position.GetScaled(terrain.terrainData.size) + terrain.GetPosition();
		}
	}
}

